package edu.sctu.xuping.month05.day20150512;

/**
 * Created by user16 on 2015/5/12.
 */
public class TextMain {
    public static void main(String[] args) {
//.在TextChild和TextChildTwo新增一个方法，该方法有一个接口类型的参数,
// 接口方法里面有判断年龄参数age,调用接口判断年龄大于age的数据，
// 并在新增方法里面进行输出年龄大于age的总人数和基本信息
        TextOne[] array = new TextOne[10];

        for (int i = 0; i < array.length; i++) {
            TextOne textOne = new TextOne();
            textOne.setSex("男");
            textOne.setAge(18 + i);
            textOne.setName("张三");
            textOne.setAddress("龙泉");
            textOne.setGrade(98 + i);
            textOne.setNumber(1406101078 + i);
            array[i] = textOne;
        }
         TextChild ti = new TextChild(array);
       ti.getSysyTem();
       ti.judgeAge(19, 101);
        TextChildTwo ti1 = new TextChildTwo(array);
        ti1.getSysyTem();
        ti1.judgeAge(19, 100);
    }

}
